package org.linlinjava.litemall.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.SysRolePerm;
import org.linlinjava.litemall.db.domain.SysRolePermExample;
import org.linlinjava.litemall.db.domain.SysRolePermKey;

public interface SysRolePermMapper {
    void insertOne(@Param("roleId") Integer roleId,@Param("permVal") String permVal,@Param("permType") Integer permType);
    /**
     * 删除对应的数据
     * @param roleId
     * @param ptype
     */
    void deleteByidPtype(@Param("roleId") Integer roleId,@Param("ptype") Integer ptype);
    /**
     * 删除对应的数据
     * @param rids
     * @param ptype
     * @param pval
     */
    void deleteOne(@Param("rids")Integer rids,@Param("ptype")Integer ptype,@Param("pval") String pval);
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    long countByExample(SysRolePermExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    int deleteByExample(SysRolePermExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(SysRolePermKey key);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    int insert(SysRolePerm record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    int insertSelective(SysRolePerm record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    SysRolePerm selectOneByExample(SysRolePermExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    SysRolePerm selectOneByExampleSelective(@Param("example") SysRolePermExample example, @Param("selective") SysRolePerm.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    List<SysRolePerm> selectByExampleSelective(@Param("example") SysRolePermExample example, @Param("selective") SysRolePerm.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    List<SysRolePerm> selectByExample(SysRolePermExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    SysRolePerm selectByPrimaryKeySelective(@Param("record") SysRolePermKey key, @Param("selective") SysRolePerm.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    SysRolePerm selectByPrimaryKey(SysRolePermKey key);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") SysRolePerm record, @Param("example") SysRolePermExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") SysRolePerm record, @Param("example") SysRolePermExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(SysRolePerm record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role_perm
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(SysRolePerm record);
}